<?php
class RecipesController extends AppController 
{
	public $name = 'Recipes';

	public function admin_index() 
	{

	}
	public function admin_add() 
	{
		//$this->loadModel('Recipecategory');
		//$recipecategory = $this->Recipecategory->find('all');
		//print_r($recipecategory);
		//exit();
		$this->autoRender = false;
		$this->layout = false;

		$t = $this->Recipe->find('all');

		echo '<pre>';
			print_r($t);
		echo '</pre>';
		
		
		// $this->set(array('title_for_layout' =>  'Add new Recip'));
  //       if ($this->request->is('post')) {
  //           $this->Recipe->create();
  //           if ($this->Recipe->save($this->request->data)) {
  //               $this->Session->setFlash(__('The Recipe has been saved'));
  //               return $this->redirect(array('action' => 'index'));
  //           }
  //           $this->Session->setFlash(
  //               __('The recipe could not be saved. Please, try again.')
  //           );
  //       }

	}
}